Skip to content

parameters tags#471

Open
john (j13huang) wants to merge 1 commit into
mainfrom
parameters-tags
Open

parameters tags#471
john (j13huang) wants to merge 1 commit into
mainfrom
parameters-tags

Conversation

@j13huang
Copy link
Copy Markdown
Contributor

@j13huang john (j13huang) commented May 28, 2026

Support tags in the sdk for parameters. Allows something like this:

bt functions push params.py

Details
import braintrust
from pydantic import BaseModel, Field

project = braintrust.projects.create(name="My Project")


class MyParam(BaseModel):
    value: str = Field(
        default="hello world",
    )


project.parameters.create(
    name="my_params",
    slug="my-params",
    description="Configuration for model evaluation",
    schema={
        "foo": MyParam,
    },
    metadata={"version": "1.0"},
    tags=["tag1", "tag2"],
)

Produces this in the product:

image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we please add a pr description? Helps for folks reading through the changelog and viewing PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants